﻿using MiniFox.Components;
using MiniFox.Infrastructure;
using MiniFox.Platform.File.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MiniFox.Platform.File.Providers
{
    /// <summary>
    /// 
    /// </summary>
    [AutoRegister]
    public interface IFileProvider
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="fileId"></param>
        /// <returns></returns>
        FileData GetFile(string fileId);
        /// <summary>
        /// 
        /// </summary>
        /// <param name="group"></param>
        /// <param name="path"></param>
        /// <param name="fileName"></param>
        /// <returns></returns>
        FileData GetFile(string group, string path, string fileName);

        /// <summary>
        /// 
        /// </summary>
        /// <param name="group"></param>
        /// <param name="path"></param>
        /// <param name="top"></param>
        /// <returns></returns>
        FileData[] Query(string group, string path, int? top);
        /// <summary>
        /// 
        /// </summary>
        /// <param name="group"></param>
        /// <param name="queryObject"></param>
        /// <returns></returns>
        ResultObject<IEnumerable<FileData>> Query(string group, PagedQueryObject<FileQuery> queryObject);
        ///// <summary>
        ///// 
        ///// </summary>
        ///// <param name="folderId"></param>
        ///// <returns></returns>
        //FileData[] Query(string folderId);
    }
}
